home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
msdos
/
utils
/
cad3d2ra.zoo
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-04-05
|
2KB
|
67 lines
# Makefile for cad3d2raw
# Chris Herborth (cherborth@semprini.waterloo-rdp.on.ca)
# $Id: Makefile,v 1.4 1994/04/05 15:07:30 herborth Exp $
#
# The only option you need to worry about is -DLITTLE_ENDIAN; add this to
# CFLAGS if you've got the misfortune of running on a little-endian host,
# such as any computer using an Intel CPU.
# Your C compiler; use gcc, it's the best. If you've got Metaware's
# High C compiler on your system (ex, NCR System 3000 UNIX box), you
# might want to add -Hnocopyr here, just to make it a bit quieter.
# CC=gcc -ansi
# CC=cgcc -ansi -Wall
CC=cc -Hnocopyr
# Any optimisations, and other C flags. Add -DLITTLE_ENDIAN if you've
# got an Intel or other little-endian CPU.
# CFLAGS=-O -g
# CFLAGS=-O2
CFLAGS=-O -486 -DLITTLE_ENDIAN
# For silly systems that require a specific file extension on executables:
PROGRAM=cad3d2raw # UNIX, etc.
# PROGRAM=cad3d2raw.exe # DOS, OS/2, etc.
# PROGRAM=cad3d2raw.ttp # Atari TOS
$(PROGRAM): cad3d2raw.o cad3dobj.o
$(CC) $(CFLAGS) -o $@ cad3d2raw.o cad3dobj.o
cad3d2raw.o: cad3d2raw.c
cad3dobj.o: cad3dobj.c
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
-rm cad3d2raw.o cad3dobj.o core compile.err
spotless:
-rm cad3d2raw.o cad3dobj.o core compile.err $(PROGRAM)
zoo:
zoo ah cad3d2raw.zoo Makefile *.c *.h README README.html
gzip:
tar -cvf cad3d2raw.tar Makefile *.c *.h README README.html
gzip -9 -v cad3d2raw.tar
shar:
shar -o cad3d2raw.sh Makefile *.c *.h README README.html
# $Log: Makefile,v $
# Revision 1.4 1994/04/05 15:07:30 herborth
# Added shar target.
#
# Revision 1.3 1994/04/05 14:36:21 herborth
# Added $(PROGRAM) for program target in case of stupid operating
# systems.
#
# Revision 1.2 1994/04/05 14:20:15 herborth
# Added zoo and gzip targets for packaging everything up nicely.
#
# Revision 1.1 1994/03/14 15:20:42 herborth
# Initial revision
#